# coding = utf8
from numpy import *

#曼哈顿距离
vector1 = mat([1, 2, 3])
vector2 = mat([4, 5, 6])
print (sum(abs(vector1-vector2)))



